package com.dream.wukong.common.core.interfaces.email;

import org.springframework.mail.MailException;
import org.springframework.mail.SimpleMailMessage;

import javax.mail.internet.MimeMessage;

/**
 * @Author: wuyichao
 * @Description:
 * @Date: Created in 10:57 2018/9/18.
 * @Modified:
 */
public interface IMailAsynService {
    /**
     * 异步发送一封邮件
     */
    void sendAsyn(MimeMessage mimeMessage) throws MailException;

    /**
     * 异步发送一组邮件
     */
    void sendAsyn(MimeMessage[] mimeMessages) throws MailException;

    /**
     * 异步发送一封简单的文本邮件
     */
    void sendAsyn(SimpleMailMessage simpleMessage) throws MailException;

    /**
     * 异步发送一组简单的文本邮件
     */
    void sendAsyn(SimpleMailMessage[] simpleMessages) throws MailException;

}
